import { _decorator, Component, Node, EventTouch, Button } from 'cc'
const { ccclass, property } = _decorator

// 引入事件中心
import EventManager from '../../Runtime/EventManager'


@ccclass('MenuManager')
export class MenuManager extends Component {
  // 撤回
  clickUndoBtn(event: EventTouch, type: string) {
    EventManager.Instance.emit('RESTORE', type)
  }

  // 点击开始
  clickRestartBtn(event: EventTouch, type: string) {
    EventManager.Instance.emit('RESTART')
  }

  // 点击设置
  clickOutBtn(event: EventTouch, type: string) {
    EventManager.Instance.emit('OUT')
  }
}
